home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 034a / qread20.zip / SEND.BAT < prev    next >
DOS Batch File  |  1992-01-24  |  2KB  |  52 lines

  1. echo off
  2. rem ------------------------------------------------------------------------
  3. rem QReader passes these parameters to SEND.BAT
  4. rem %1 = baud rate
  5. rem %2 = com port
  6. rem %3 = file name to send
  7. rem %4 = protocol choice (letter)
  8. rem %5 = base address for com ports other than 1 or 2 (DSZ portx option).
  9. rem %6 = IRQ for com ports other than 1 or 2 (DSZ portx option).
  10. rem ------------------------------------------------------------------------
  11. rem  If using non-standard COM ports (COM ports other than 1 or 2), replace
  12. rem  port %2 in each line below with portx %5,%6 (note comma between %5,%6).
  13. rem ------------------------------------------------------------------------
  14. rem  If you wish to use the GSZ (graphical equivalent to DSZ) protocol,
  15. rem  simply replace each occurrknce of DSZ below with GSZ and refer to
  16. rem  QREADER.DOC for configuring PROTOCOL.DAT.  Also place the following
  17. rem  set command in your BBS batch file:  SET GSZWINDOW=21
  18. rem ------------------------------------------------------------------------
  19. if "%4" == "X" goto :Xmodem
  20. if "%4" == "C" goto :Xmodem
  21. if "%4" == "O" goto :1Kxmodem
  22. if "%4" == "F" goto :1KxmodemG
  23. if "%4" == "Y" goto :Ymodem
  24. if "%4" == "G" goto :YmodemG
  25. if "%4" == "Z" goto :Zmodem
  26. goto :end
  27.  
  28. :Xmodem
  29. DSZ port %2 pB4096 sx %3
  30. goto :end
  31.  
  32. :1Kxmodem
  33. DSZ port %2 pB4096 sx -k %3
  34. goto :end
  35.  
  36. :1KxmodemG
  37. DSZ port %2 pB4096 sx -k -g %3
  38. goto :end
  39.  
  40. :Ymodem
  41. DSZ port %2 pB4096 sb -k %3
  42. goto :end
  43.  
  44. :YmodemG
  45. DSZ port %2 pB4096 sb -k %3
  46. goto :end
  47.  
  48. :Zmodem
  49. DSZ port %2 pB4096 sz -m %3
  50.  
  51. :end
  52.